<?php /* Smarty version Smarty-3.1.6, created on 2018-03-10 22:39:28
         compiled from "./Tpl/Admin\SysRole\index.html" */ ?>
<?php /*%%SmartyHeaderCode:271505aa3ee206e1b26-80615968%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f0e9afe994af52be907f7736a48539dfdd66f0e2' => 
    array (
      0 => './Tpl/Admin\\SysRole\\index.html',
      1 => 1494558134,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '271505aa3ee206e1b26-80615968',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'module' => 0,
    'controller' => 0,
    'page' => 0,
    'limit' => 0,
    'id' => 0,
    'keywords' => 0,
    'vo' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5aa3ee2076a6a',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5aa3ee2076a6a')) {function content_5aa3ee2076a6a($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("Public/top.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</head>
<body>
	<div id="warpper">
        <div class="content">
            <div class="location">角色管理</div>
            <div class="ui-tab">
                <ul>
                    <li class="tab-item selected"><a href="<?php echo u('SysRole/index');?>
" onclick="LayerShow();">角色列表</a></li>
                    <li class="tab-item last-item"><a href="<?php echo u('SysRole/add');?>
" onclick="LayerShow();">新增角色</a></li>
                </ul>
            </div>
            <div class="filedSet" style="padding-bottom: 0;">
                <div class="search">
                    <form action="<?php echo U('SysRole/search');?>
" class="ui-form reportForm"  id="searchForm" method="get">

                    	<input name="m" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
">
                        <input name="c" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['controller']->value;?>
">
                        <input name="a" type="hidden" value="search">
                    	<input name="p" id="page" type="hidden" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['page']->value)===null||$tmp==='' ? 1 : $tmp);?>
">
                    	<input name="limit" id="limit" type="hidden" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['limit']->value)===null||$tmp==='' ? 10 : $tmp);?>
">
                        <div class="ui-form-item inline-block">
                        	<label class="ui-label">编号</label>
                            <input type="text" class="ui-text bg-text keyword" name="id" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
" />

                            <label class="ui-label">关键字</label>
                            <input type="text" class="ui-text bg-text keyword" name="keywords" value="<?php echo $_smarty_tpl->tpl_vars['keywords']->value;?>
"/>
                        </div>
                        <div class="ui-form-item inline-block">
                            <button type="submit" class="ui-button" onclick="LayerShow();">查询</button>
                        </div>
                    </form>
                </div>
            </div> 
            <!--表头-->
            <form method="post" name="FORM" action="<?php echo u('SysRole/batchOperate');?>
">
	            <!--表格内容-->
	            <div class="mainGrid">
	                <table class="ui-table ui-body">
	                    <thead>
	                        <tr>
                                <th class="pct5"></th>
                                <th class="pct10">编号</th>
                                <th class="pct10">角色名</th>
                                <th class="pct20">备注</th>
                                <th class="pct10 last-col">操作</th>
	                        </tr>
	                    </thead>
	                    <tbody>
	                    	<?php  $_smarty_tpl->tpl_vars["vo"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["vo"]->_loop = false;
 $_from = ($_smarty_tpl->tpl_vars['list']->value); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["vo"]->key => $_smarty_tpl->tpl_vars["vo"]->value){
$_smarty_tpl->tpl_vars["vo"]->_loop = true;
?>
		                        <tr>
		                        	<td class="td2">&nbsp;<input type="checkbox" name="delid[]" value="<?php echo $_smarty_tpl->tpl_vars['vo']->value['id'];?>
" /></td>
		                            <td><?php echo $_smarty_tpl->tpl_vars['vo']->value['id'];?>
</td>
		                            <td><?php echo $_smarty_tpl->tpl_vars['vo']->value['name'];?>
</td>
		                            <td><?php echo $_smarty_tpl->tpl_vars['vo']->value['remark'];?>
</td>
		                            <td class="ta_l">
		                                <div class="handler">
		                                	<a class="mr5" id="access" href="<?php echo u(('SysRole/access?id=').($_smarty_tpl->tpl_vars['vo']->value['id']));?>
" onclick="LayerShow();">分配权限</a>
		                                	<span class="sep">|</span>
		                                    <a href="<?php echo u(('SysRole/edit?id=').($_smarty_tpl->tpl_vars['vo']->value['id']));?>
" onclick="LayerShow();">编辑</a>
		                                    <span class="sep">|</span>
		                                    <a href="<?php echo u(('SysRole/delete?id=').($_smarty_tpl->tpl_vars['vo']->value['id']));?>
" onclick="if(!confirm('您确认要删除此数据吗?删除后数据不能恢复!'))return false;">删除</a>
		                                </div>
		                            </td>
		                        </tr>
		                    <?php } ?>
	                    </tbody>
	                </table>
	            </div>
            
	            <!--描述：分页-->
	        </form>
	        <div class="pagination">
	        	<?php echo $_smarty_tpl->getSubTemplate ("Public/page.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

	            <!-- <a href="javascript:void(0)" class="prev">◀</a>
	            <span><i class="cur">1</i>/<i class="total">5</i></span>
	            <a href="javascript:void(0)" class="next">▶</a>
	            <input type="text" class="page"/>
	            <button type="button">跳转</button> -->
	        </div>
        </div>
	</div>
<?php echo $_smarty_tpl->getSubTemplate ("Public/foot.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>